package com.globagames.isometric.core.model
{
	
	import com.adobe.cairngorm.model.ModelLocator;
	import com.globagames.isometric.core.view.IsoMap;
	

	[Bindable]
	public class IsoEngineModelLocator implements ModelLocator
	{
		private static var modelLocator:IsoEngineModelLocator;
		public static function getInstance():IsoEngineModelLocator {
			if(modelLocator==null) modelLocator = new IsoEngineModelLocator();
			return modelLocator;
		}
		public function IsoEngineModelLocator() {
			if(modelLocator!=null)throw new Error("Only one IsoEngineModelLocator should be instancied !");
					
		}
		public var isoMap:IsoMap;
		[Bindable]
		public var screenWidth:int = 1024;
		[Bindable]
		public var screenHeight:int = 768;
		
		public var cursorID:Number = 0;
		public var handCursorID:Number = 1;
		//MOUSE CURSOR
		[Embed(source="/assets/mouse/hand.png")]
		public var dragCursorSymbol:Class;
		
		public var autoScrollingIsOn:Boolean = false;
		[Bindable]
		public var draggingMapIsOn:Boolean = false;
		
		[Bindable]
		public var mouseActionIsOn:Boolean = false;
		
			
		
	}
}